package cn.cdeden.knowledge.domain.dto;

import cn.cdeden.common.translation.annotation.Translation;
import cn.cdeden.common.translation.constant.TransConstant;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

//import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author Chen
 * @date 2022-11-22
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class TeamRoleDto implements Serializable {
    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "编号")
    @TableId(type= IdType.AUTO)
    private Long id;

//    @ApiModelProperty(value = "树节点编号")
    private String treeNodeId;

//    @ApiModelProperty(value = "团队id")
    private String teamId;

//    @ApiModelProperty(value = "icon图标")
    private String icon;

//    @ApiModelProperty(value = "icon颜色")
    private String iconColor;

//    @ApiModelProperty(value = "权限角色名称")
    @NotEmpty
    private String roleName;

//    @ApiModelProperty(value = "角色描述")
    private String remark;

//    @ApiModelProperty(value = "权重（1-10，由小到大，等级变低）")
    private Integer rank;

//    @ApiModelProperty(value = "返回权限")
    private String params;

    private List<String> permCodes;

//    @ApiModelProperty(value = "用户姓名")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME)
    private String nickName;

//    @ApiModelProperty(value = "部门路径")
    private String ownerDept;

//    @ApiModelProperty(value = "创建编号")
    @TableField(fill= FieldFill.INSERT)
    private String createId;

//    @ApiModelProperty(value = "创建日期")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;

//    @ApiModelProperty(value = "更新编号")
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private String updateId;

//    @ApiModelProperty(value = "更新时间")
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
